ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Operator: (^^)
Type: (Fractional a, Integral b) => a -> b -> a
Priority: 8
Description: a more efficient implementation of power, where exponent must be an integer
Related: (**), (^)
Keywords: power
MATHWORLD Power

Example 1

Input: 5 ^ 2

Output: 25

Example 2

Input: 5 ^ (-2)

Output: 0.25